package com.cx.auth;

import org.springframework.security.core.userdetails.UserDetails;

/**
 * @Author:chenxiaoyi
 * @Date:2020/12/30 18:26
 */
public interface UserTokenService<T extends UserDetails> {

    String createAccessToken(T userDetails);

    boolean verify(String accessToken);

    T loadUserDetails(String accessToken);

    void clear(String accessToken);

}
